<h1><%= title "Estates" %></h1>

<table>
  <tr>
    <th>Character</th>
    <th>Name</th>
    <th>County</th>
    <th>Size</th>
    <th>Masters</th>
    <th>Grooms</th>
    <th>Pages</th>
    <th>Ladies</th>
  </tr>

<% for estate in @estates %>
  <tr>
    <td><%=link_to_record estate.character %></td>
    <td><%=h estate.name %></td>
    <td><%=link_to_record estate.county %></td>
    <td><%=h estate.size %></td>
    <td><%=h estate.masters %></td>
    <td><%=h estate.grooms %></td>
    <td><%=h estate.pages %></td>
    <td><%=h estate.ladies %></td>
    <td><%= link_to 'Show', estate %></td>
    <td><%= link_to 'Edit', edit_estate_path(estate) %></td>
    <td><%= link_to 'Destroy', estate, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New estate', new_estate_path %> | <%= link_to 'Home', '/' %>
